<?php
/**
 * Specs
 * Created by Veyron
 * motto:现在的拼搏 为了更好的明天
 * day:  2020/2/9
 * Time: 14:36
 */

namespace app\common\model\mysql;

class SpecsValue extends BaseModel
{
    public $autoWriteTimestamp = true;
    public function getBySpecsId($specsId,$field){
        $where = [
            'specs_id' => $specsId,
            'status'   => config('status.mysql.table_normal')
        ];
        $res = $this->field($field)
                    ->where($where)
                    ->select();

        return $res;
    }
//    public function delete($specsId){
//
//    }

}
